import messages from '@/i18n/messages.ts';
import { createI18n } from 'vue-i18n';

const i18nConfig = {
    globalInjection: true,
    fallbackLocale: 'zhCN', // 默认语言
    locale: 'zhCN',
    legacy: false, // you must set `false`, to use Composition API
    messages,
};

export const i18n = createI18n(i18nConfig);
// 导出类型增强
export type I18nType = typeof i18n;
